package com.shixi.shixitraining.shixitraining.ui.tabhome.fragment;

import android.os.Bundle;
import android.widget.TextView;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.base.TabhostBaseFragment;
import com.shixi.shixitraining.shixitraining.ui.tabhome.entity.TrainingListDetailBean;

/**
 * Created by shenyan on 2018/8/9.
 */

public class ProjectFragment extends TabhostBaseFragment {


    private TrainingListDetailBean dataList;


    @Override
    protected int getlayoutId() {
        return R.layout.fragment_project;
    }

    @Override
    protected void initPager() {
        TextView    mContent = (TextView) mContentView.findViewById(R.id.tv_content);
        Bundle arguments = getArguments();
       if (arguments!=null){
           dataList = (TrainingListDetailBean) arguments.getSerializable("bean");
           TrainingListDetailBean.DataBean data = dataList.getData();
           String features = data.getFeatures();
           mContent.setText(features);

       }

        TextView dataTv = (TextView) mContentView.findViewById(R.id.tv_data);




//        RecyclerView mRcView = (RecyclerView) mContentView.findViewById(R.id.rcview_project);

//        LinearLayoutManager  manager=new LinearLayoutManager(getContext());
//        manager.setOrientation(LinearLayoutManager.VERTICAL);
//        mRcView.setLayoutManager(manager);

//        ProjectAdapter  adapter=new ProjectAdapter(getContext(),dataList);
//        mRcView.setAdapter(adapter);

    }

//    private class ProjectAdapter extends BaseAdapter<TrainingListDetailBean>{
//
//        public ProjectAdapter(Context context, List<TrainingListDetailBean> data) {
//            super(context, data);
//        }
//
//        @Override
//        public void convert(BaseRecycleHolder holder, TrainingListDetailBean item, int position) {
//          holder.setText(R.id.project_desc,item.getData().getFeatures());
//        }
//
//        @Override
//        protected int getLayoutId(int viewType) {
//              return R.layout.adapter_project;
//        }
//
//    }


}
